<?php

namespace IMT\UserBundle\Form\Type;

use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\AbstractType;
use FOS\UserBundle\Form\Type\ChangePasswordFormType as BaseType;


class ChangePasswordFormType extends BaseType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('current', 'password');
        $builder->add('new', 'repeated', array('type' => 'password'));
    }

    public function getDefaultOptions(array $options)
    {
        return array('data_class' => 'FOS\UserBundle\Form\Model\ChangePassword');
    }

    public function getName()
    {
        return 'imt_user_change_password';
    }
}
